package com.yonyou.cyxdms.sysAuth.service.dto.dealer;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;


/**
 * <p>
 * 
 * </p>
 *
 * @author adu
 * @since 2019-09-12
 */

public class MsgRecordManageDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告ID
     */
        private Integer msgId;
        /**
     * 员工id
     */
        private Integer userId;
        /**
     * 公告阅读状态
     */
        private Integer noticeRead;
        /**
     * 公告确认状态
     */
        private Integer noticeConfirm;
        /**
     * 是否删除
     */
        private Integer isDeleted;
    
    public MsgRecordManageDTO() {
        super();
    }




    public Integer getMsgId() {
        return msgId;
    }


    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }



    public Integer getUserId() {
        return userId;
    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }



    public Integer getNoticeRead() {
        return noticeRead;
    }


    public void setNoticeRead(Integer noticeRead) {
        this.noticeRead = noticeRead;
    }



    public Integer getNoticeConfirm() {
        return noticeConfirm;
    }


    public void setNoticeConfirm(Integer noticeConfirm) {
        this.noticeConfirm = noticeConfirm;
    }



    public Integer getIsDeleted() {
        return isDeleted;
    }


    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "MsgRecordManageDTO{" +
        "msgId=" + msgId +
        ", userId=" + userId +
        ", noticeRead=" + noticeRead +
        ", noticeConfirm=" + noticeConfirm +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author adu
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author adu
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "msgId");
    }

}
